package com.gxa.learning.pc.service;

import com.gxa.learning.core.exception.BusinessException;
import com.gxa.learning.core.pojo.Score;
import com.gxa.learning.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface TestService extends BaseService<Score> {
    /**
     * 发布考试
     */
    void sendTest(Long qid, Long pid, Integer passScore, Integer testTime, Integer endDay) throws BusinessException;

    /**
     * 分页获取考试的成绩列表
     */
    List<Map<String, Object>> getScoreList(Long pid, String name, String company, String department, Integer page, Integer size) throws BusinessException;

    /**
     * 获取所有的成绩列表
     */
    List<Map<String, Object>> getAllScoreList(Long pid, String name, String company, String department) throws BusinessException;

}
